﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WEEK12_上课演示._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>无标题页</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
        
                <asp:DataList ID="DataList1" runat="server" RepeatColumns="3" 
                              RepeatDirection="Horizontal" DataKeyField="StudentID" onitemcommand="DataList1_ItemCommand" 
                    >
                    <ItemTemplate>
                        <table width="300px" border="1">
                            <tr>
                                <td>学号：</td>
                                <td><asp:TextBox runat="server" ID="txtStudentID" Text='<%#Eval("StudentID")%>'/></td>
                                <td rowspan="3"><asp:image runat="server" ID="imgStudent" 
                                                           Width="100px"      ImageUrl='<%#"images/" + Eval("Photo")%>' /></td>
                            </tr>
                            <tr>
                                <td>姓名：</td>
                                <td><asp:TextBox runat="server" ID="txtName" Text='<%#Eval("Name")%>'/></td>
                               
                            </tr>
                            <tr>
                                <td>系：</td>
                                <td><asp:TextBox runat="server" ID="txtDepartment" Text='<%#Eval("Department")%>'/></td>
       
                            </tr>
                            <tr><td colspan="3" align="center">
                                    <asp:button runat="server" ID="btnBuy" Text="购买" CommandName="Buy" />&nbsp;
                                    <asp:button runat="server" ID="btnFollow" Text="关注" />&nbsp;
                                    <asp:button runat="server" ID="btnCompare" Text="比较" />&nbsp;
                                    
                                    <asp:imagebutton runat="server" ID="btnbuyi" ImageUrl="delete.png" />
                                </td></tr>
                        </table>
                   
                    </ItemTemplate>
                </asp:DataList>
            </div>
        </form>
    </body>
</html>